package com.zjj.edu.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zjj.edu.common.annotation.Excel;
import com.zjj.edu.common.core.domain.BaseEntity;

/**
 * 应用对象 sys_application
 * 
 * @author zjj
 * @date 2020-06-04
 */
public class SysApplication extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 应用编号 */
    private Long appId;

    /** 应用编码 */
    @Excel(name = "应用编码")
    private String appCode;

    /** 名称 */
    @Excel(name = "名称")
    private String appName;

    /** 类型（0：超级管理员使用；1：租户使用） */
    @Excel(name = "类型", readConverterExp = "0=：超级管理员使用；1：租户使用")
    private String appType;

    /** 在线状态（0在线 1离线） */
    @Excel(name = "在线状态", readConverterExp = "0=在线,1=离线")
    private String status;

    /** 排序（升序） */
    @Excel(name = "排序", readConverterExp = "升=序")
    private Long appSort;

    /** 删除标记（0代表存在 2代表删除） */
    private String delFlag;

    /** 是否存在此标识 默认不存在 */
    private boolean flag = false;

    public void setAppId(Long appId) 
    {
        this.appId = appId;
    }

    public Long getAppId() 
    {
        return appId;
    }
    public void setAppCode(String appCode) 
    {
        this.appCode = appCode;
    }

    public String getAppCode() 
    {
        return appCode;
    }
    public void setAppName(String appName) 
    {
        this.appName = appName;
    }

    public String getAppName() 
    {
        return appName;
    }
    public void setAppType(String appType) 
    {
        this.appType = appType;
    }

    public String getAppType() 
    {
        return appType;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setAppSort(Long appSort) 
    {
        this.appSort = appSort;
    }

    public Long getAppSort() 
    {
        return appSort;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("appId", getAppId())
            .append("appCode", getAppCode())
            .append("appName", getAppName())
            .append("appType", getAppType())
            .append("status", getStatus())
            .append("appSort", getAppSort())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
